import _http from '@/utils/http'

export default {
    shopAll(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/visible/visible-shops',
            apiName: '商铺选项',
        }, params, loading, headers)
    },

    productList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/feimao/goods/product/list',
            apiName: '产品类型筛选列表',
        }, params, loading, headers)
    },

    /**
     * 销售订单相关
     */
    orderSelfList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/shop/search',
            apiName: '销售订单列表',
        }, params, loading, headers)
    },

    orderSelfDetail(params, loading, headers) {
        return _http('get', {
            url: '/eas/manage/order/detail',
            apiName: '销售订单详情',
        }, params, loading, headers)
    },

    vehicleLicenseInfo(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/vehicleLicense/info',
            apiName: '获取行车证上传图片',
        }, params, loading, headers)
    },

    idCardInfo(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/idCard/info',
            apiName: '获取身份证照片',
        }, params, loading, headers)
    },

    orderCheck(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/check',
            apiName: '订单审核操作',
        }, params, loading, headers)
    },

    goodsDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/product/detail',
            apiName: '商品详情',
        }, params, loading, headers)
    },

    orderSelfDown(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/self/down',
            apiName: '销售订单导出',
        }, params, loading, headers)
    },

    orderSelfUpload(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/self/upload',
            apiName: '销售订单导入',
        }, params, loading, headers)
    },

    /**
     * 加盟订单相关
     */
    orderJoinList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/join/qry/list',
            apiName: '销售订单列表',
        }, params, loading, headers)
    },

    orderJoinDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/join/qry/detail',
            apiName: '销售订单详情',
        }, params, loading, headers)
    },

    orderJoinGoods(params, loading, headers) {
        return _http('post', {
            url: '/eas/feimao/options/join/goods',
            apiName: '销售商品选项',
        }, params, loading, headers)
    },

    orderJoinPackage(params, loading, headers) {
        return _http('post', {
            url: '/eas/feimao/options/join/package',
            apiName: '销售套餐选项',
        }, params, loading, headers)
    },

    orderJoinDown(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/join/down',
            apiName: '销售订单导出',
        }, params, loading, headers)
    },

    orderJoinUpload(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/join/upload',
            apiName: '销售订单导入',
        }, params, loading, headers)
    },

    /**
     * 充值/退款订单相关
     */
    orderRecharge(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/recharge/search',
            apiName: '充值订单列表',
        }, params, loading, headers)
    },

    orderRechargeRefund(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/recharge/refund/search',
            apiName: '退款订单列表',
        }, params, loading, headers)
    },

    packageAll(params, loading, headers) {
        return _http('post', {
            url: '/eas/feimao/options/packageAll',
            apiName: '所有套餐',
        }, params, loading, headers)
    },

    /**
     * 提现订单相关
     */
    orderWithdraw(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/withdraw/order/list',
            apiName: '提现订单列表',
        }, params, loading, headers)
    },
    orderWithdrawDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/withdraw/order/detail',
            apiName: '提现订单详情',
        }, params, loading, headers)
    },
    orderWithdrawDown(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/withdraw/order/list/down',
            apiName: '提现订单导出',
        }, params, loading, headers)
    },
    grantList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/income/grant/search',
            apiName: '发放记录列表',
        }, params, loading, headers)
    },
    incomeDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/income/detail',
            apiName: '发放记录详情',
        }, params, loading, headers)
    },

    /**
     * 佣金订单相关
     */
    orderIncome(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/income/orders/page',
            apiName: '佣金订单列表',
        }, params, loading, headers)
    },
    orderIncomeDown(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/income/income/order/list/down',
            apiName: '佣金订单导出',
        }, params, loading, headers)
    },
}
